package com.guigui.erp.controller;

import com.guigu.erp.pojo.DesignModuleDetails;
import com.guigu.erp.service.DesignModuleDetailsService;
import com.guigu.erp.utils.PageUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author Lenovo
 */
@Controller
@RequestMapping("/design/details")
public class DesignModuleDetailsController {
    @Autowired
    DesignModuleDetailsService designModuleDetailsService;

    /**
     * 产品档案物料查询
     */
    @RequestMapping("/moduleDetailsPage")
    @ResponseBody
    public PageUtils<DesignModuleDetails> moduleDetailsPage(Integer parentId, int pageNo, int pageSize) {
        System.out.println(parentId);
        PageUtils<DesignModuleDetails> page =designModuleDetailsService.moduledetailsPage(parentId,pageNo, pageSize);
        return page;
    }
}
